import java.util.Arrays;

public class TestDemo {
    public static void main(String[] args) {
        int[] arry = new int[]{1,2,3};
        System.out.println(Arrays.toString(arry));
        int[] ret = transfer(arry);
        System.out.println(Arrays.toString(ret));
    }

    public static int[] transfer(int[] arry){
        int[] ret = new int[arry.length];
        for(int i = 0; i < arry.length; i++){
            ret[i] = 2*arry[i];
        }
        return ret;
    }
}
